@import '../../assets/css/theme.css';

.avatar-edit-container {
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%));
}

.back-to-home {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.home-button {
  background: linear-gradient(45deg, #409EFF, #67C23A);
  border: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}

.avatar-edit-panel {
  max-width: 500px;
  margin: 80px auto 0;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: var(--card-background, rgba(255, 255, 255, 0.9));
}

.panel-header {
  text-align: center;
  margin-bottom: 0;
}

.panel-header h2 {
  margin: 0;
  color: var(--text-color, #303133);
  font-size: 24px;
  font-weight: 600;
}

.avatar-edit-content {
  padding: 20px 0;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border: 2px dashed var(--border-color, #dcdfe6);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
  margin: 0 auto;
}

.upload-area:hover {
  border-color: var(--primary-color, #409EFF);
}

.upload-placeholder {
  text-align: center;
  color: var(--text-color, #909399);
}

.upload-placeholder .el-icon {
  margin-bottom: 10px;
  color: var(--text-color, #c0c4cc);
}

.upload-tips {
  text-align: center;
  margin-top: 10px;
  color: var(--text-color, #909399);
  font-size: 12px;
}

.current-avatar-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color, #ebeef5);
}

.current-avatar-section h3 {
  margin-bottom: 15px;
  color: var(--text-color, #606266);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .avatar-edit-panel {
    margin: 100px 20px 0;
  }
  
  .back-to-home {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 20px;
  }
}
